<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class SetupMembersTable extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //

        // Creates the users table
        Schema::create('members', function ($table) {
            $table->increments('id');
            $table->string('unique_id',100)->nullable()->comment('客户唯一识别码');
            $table->string('nick_name',50)->nullable()->comment('昵称');
            $table->string('phone',50)->nullable()->comment('手机号');
            $table->string('name',50)->nullable()->comment('姓名');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('members');
    }

}
